{extend name="base"}
{block name="body"}
<ol class="breadcrumb">
  <li><a href="{:url('index')}">首页</a></li>
  <li><a href="{:url('goodsSpec')}">商品规格</a></li>
  <li class="active">添加规格</li>
</ol>
<div class="panel panel-default">
  <div class="panel-body">
    <form class="form-horizontal" method="post" enctype="multipart/form-data">
      <div class="form-group">
        <label for="cname" class="col-sm-1 control-label">规格名称:</label>
        <div class="col-sm-6">
          <input type="text" class="form-control" id="name" name="name" placeholder="规格的名称:如 尺码/颜色/大小 等等">
        </div>
      </div>
      <div class="form-group">
        <label for="type_id" class="col-sm-1 control-label">所属模型:</label>
        <div class="col-sm-2">
            <select class="form-control" name="type_id">
              <option value="0">请选择</option>
              {foreach $typeData as $vo}
              <option value="{$vo.id}">{$vo.name}</option>
              {/foreach}
            </select>
            <input type="hidden" name="path" value="0">
        </div>
      </div>
      <div class="form-group">
        <label for="category_desc" class="col-sm-1 control-label">规格项:</label>
        <div class="col-sm-6">
          <textarea class="form-control" rows="3" name="specItem" placeholder="每个规格项换行"></textarea>
        </div>
      </div>
      <div class="form-group">
        <label for="category_desc" class="col-sm-1 control-label">排序:</label>
        <div class="col-sm-2">
          <input type="number" class="form-control" name="order" value="50">
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-1 col-sm-11">
          <button type="submit" class="btn btn-default">提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
{/block}